package sy.model;

import javax.persistence.*;

@Entity
@Table(name = "trole_tstorer", schema = "")
public class Trolestorer implements java.io.Serializable {

	private String cid;
	private Tstorer tstorer;
	private Trole trole;

	public Trolestorer() {
	}

	public Trolestorer(String cid) {
		this.cid = cid;
	}


	@ManyToOne
	@JoinColumn(name = "STORERID")
	public Tstorer getTstorer() {
		return tstorer;
	}

	public void setTstorer(Tstorer tstorer) {
		this.tstorer = tstorer;
	}

	@Id
	@Column(name = "CID",  nullable = false, length = 36)
	public String getCid() {
		return this.cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ROLEID")
	public Trole getTrole() {
		return this.trole;
	}

	public void setTrole(Trole trole) {
		this.trole = trole;
	}

}